package com.homework2;

/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: java泛型
 * @date :  2022-10-26 16:38
 **/
@SuppressWarnings("all")
public class MyHomeWork {
    public static void main(String[] args) {
        int a=15;
        MyHomeWork1 myHomeWork1 = new MyHomeWork1();
        myHomeWork1.run();

    }
}
class MyHomeWork1{
    private int a;
    private int b;
    @Deprecated
    public void run(){
        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
@FunctionalInterface
interface MyHomeWork3{
    public void run();
}
